package com.linuxgt.pattern.command.scheme3;

/**
 * Created by LIUTENG on 2015-01-09.
 */
public class PrintNumber {
    int n;

    public PrintNumber(int n) {
        this.n = n;
    }

    public void printEventNumber() {
        for (int m = 0; m <= n; m++) {
            if (m % 2 == 0)
                System.out.println(" " + m);
        }
    }
}
